FROM openjdk:8-jdk-alpine-with-font

ENV TZ="Asia/Shanghai"
# 支持中文
ENV LANG="C.UTF-8"

ADD ./flow-platform-boot/target/flowplatform-backend.jar /home/app/start.jar

EXPOSE 8080
ENV JAVA_OPTS='-Xmx7168M -Xms7168M -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=512M'

USER root
CMD ["sh","-c","java $JAVA_OPTS -jar /home/app/start.jar"]
